<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<script src="socket.io.js">
</script>

<script>
    const mySocket = io.connect("http://127.0.0.1:18999/demo-namespace", {
        query: {
            "userId": 1,
            "tenantId": 1
        }
    });
    mySocket.on("connection", () => {
        console.log(mySocket);
    });

    mySocket.emit("confirmConnection", {
        "url": "abc",
        "param": "1"
    }, (response) => {
        console.log(response)
    })


    mySocket.on("sendMsg", (arg1, arg2) => {
        console.log(arg1);
        console.log(arg2);
    });
</script>

</body>
</html>
